from my_config import STEPS
from config import driver

@STEPS.step("switch-new")
def switch_new(driver:driver, step:dict) -> None:
    windows = driver.window_handles
    driver.switch_to.window(windows[-1])